package com.yunpuvip.sachet.biz.service;

import com.yunpuvip.sachet.biz.entity.Payment;
import com.yunpuvip.sachet.biz.model.params.PaymentParam;
import com.yunpuvip.sachet.biz.model.result.PaymentResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunpuvip.sachet.modular.page.LayuiPageInfo;

import java.util.List;

/**
 * <p>
 * 支付账单 服务类
 * </p>
 *
 * @author wushaohong
 * @since 2019-08-10
 */
public interface PaymentService extends IService<Payment> {

    /**
     * 新增
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    void add(PaymentParam param);

    /**
     * 删除
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    void delete(PaymentParam param);

    /**
     * 更新
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    void update(PaymentParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    PaymentResult findBySpec(PaymentParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    List<PaymentResult> findListBySpec(PaymentParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
     LayuiPageInfo findPageBySpec(PaymentParam param);

}
